<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="./new_file.css"/>
</head>
<body>
<button id="btn">点击触发ajax</button>

</body>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script>
    // 注册
    $("#btn").click(function () {
        $.ajax({
            type: "post",
            url: "/mt_crm/accounts",
            data: {
                'password' : 'zytM9115',
                'name' : '胡梦石',
                'country' : '中国',
                'phone' : '电话',
                'email' : '22991106@qq.com',
                'referalId' : 12345,
                'city' : '天津',
                'town' : '河东',
                'address' : '大王庄街道十一经路长城公寓12号楼1门301',
                'zipCode' : '300000',
                'birthDate' : new Date(1992,11,6),
                'fxRankId' : 1,
                'boRankId' : 2,
                'securityCode' : '8MBLAB15'
    },
            dataType: 'json',
            success: function (result) {
                console.log(result)
            }
        })
    })
    //发邮件验证码
//$("#btn").click(function () {
//    $.ajax({
//        type: "get",
//        url: "/mt_crm/mails/security/code",
//        data: {
//            'toAddress' : '22991106@qq.com'
//        },
//        dataType: 'json',
//        success: function (result) {
//            console.log(result)
//        }
//    })
//})
</script>
</html>
